package demo.spring.boot.atomikos;

import com.atomikos.icatch.config.UserTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.jta.atomikos.AtomikosProperties;
import org.springframework.stereotype.Component;


/**
 * Created by lushun.chen on 2017/3/13.
 *
 * @author lushun.chen
 */
@Component
public class MyAtomikos {

    AtomikosProperties atomikosProperties;

    @Autowired
    private UserTransactionService userTransactionService;

    public Object demo() {
        return userTransactionService.getCompositeTransactionManager();
    }


    public Object demo2() {


        return null;
    }


}
